using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SceneFader : MonoBehaviour
{
    Animator anitor;
    int faderID;
    void Start()
    {
        anitor = GetComponent<Animator>();
        faderID = Animator.StringToHash("Fade");

        GameManager.Instance.RegisterSceneFader(this);
    }

    public void FadeOut()
    {
        anitor.SetTrigger(faderID);
    }

}
